//
//  DateUtility.swift
//  NyamanDana
//
//  Created by 李永彬 on 2025/10/22.
//

import Foundation

// MARK: - 便捷日期方法
enum DateUtility {
    static func date(from string: String) -> Date? {
        return DateFormatterUtility.shared.date(from: string)
    }
    
    static func string(from date: Date) -> String {
        return DateFormatterUtility.shared.string(from: date)
    }
    
    static func isValidDateString(_ dateString: String) -> Bool {
        return DateFormatterUtility.shared.isValidDateString(dateString)
    }
}
